﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title>币百科</title>
    <include file="public@head_reden"/>
</head>


<body>
<div id="content">
  <header class="header pd3"  style="height: 1px">
  </header>
  <div class="pd3">
    <section class="icons-three">
    <img class="head" src="/upload/{$img_url}"><p class="name">{$coin_symbol}</p>
     <ul>
      <li><span>现金估值</span><p>${$usd_price}</p></li>
      <li><span>今日涨幅</span><p><font class="red">{$price_change}%</font></p></li>
      <li><span>7日涨幅</span><p><font class="blue">{$price_change_week}%</font></p></li>
     </ul>
    </section>
    <section class="stit1">
      <p>币信息</p>
    </section>
    
    <section class="icons-info">
      <ul>
       <li><label>货币类型</label><span>{$chain_type}</span></li>
       <li><label>货币总量</label><span>{$coin_amount}</span></li>
       <li><label>总市值</label><span>{$coin_value}</span></li>
       <li><label>市值排名</label><span>{$coin_value_rank}</span></li>
       <li><label>ico时间</label><span>{$ico_time}</span></li>
       <li><label>ico价格</label><span>{$ico_price}<i class="red">(+0%)</i></span></li>
       <li><label>官网</label><span><font class="blue">{$coin_homepage}</font></span></li>
       <li><label>白皮书</label><span><a href="{$coin_whitepaper}" class="blue">点击查看</a></span></li>
      </ul>
    </section>
    </div>
     <div class="fenge"></div>
    <section class="icons-about pd3">
      <section class="stit1">
      <p>简介</p>
    </section>
    <div id="box" class="content" style="height: auto;"><p>{$coin_introduction}</p></div>
    </section>
  
</div>
<script> 
function show(){ 
var box = document.getElementById("box"); 
var text = box.innerHTML; 
var newBox = document.createElement("div"); 
var btn = document.createElement("a"); 
newBox.innerHTML = text.substring(0,150); 
btn.innerHTML = text.length > 200 ? "展开阅读全文" : ""; 
btn.href = "###"; 
btn.onclick = function(){ 
if (btn.innerHTML == "展开阅读全文"){ 
btn.innerHTML = "收起"; 
newBox.innerHTML = text; 
}else{ 
btn.innerHTML = "展开阅读全文"; 
newBox.innerHTML = text.substring(0,150); 
} 
} 
box.innerHTML = ""; 
box.appendChild(newBox); 
box.appendChild(btn); 
} 
show(); 
</script> 
</body>
</html>
